package com.qys.livesMall.system.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.system.modal.vo.HomeBannerTypeVO;
import com.qys.livesMall.system.model.dto.sys.H2AppHomeBannerStateDTO;
import com.qys.livesMall.system.model.entity.H2AppHomeBanner;
import com.qys.livesMall.system.model.vo.app.AppHomeBannerVo;

import java.util.List;

/**
 * <p>
 * 首页轮播图 服务类
 * </p>
 *
 * @author dp
 * @since 2023-05-02
 */
public interface IH2AppHomeBannerService extends IService<H2AppHomeBanner> {

    /**
     * 分页查询轮播图信息
     *
     * @param baseQuery
     * @return
     */
    Page<H2AppHomeBanner> page(BaseQuery baseQuery);

    /**
     * app分页查询轮播图信息
     *
     * @return
     */
    List<AppHomeBannerVo> listByApp();

    /**
     * 根据id查询活动详情
     *
     * @param id
     */
    AppHomeBannerVo queryById(Long id);

    void updateState(H2AppHomeBannerStateDTO dto);

    Page<HomeBannerTypeVO> typePage(BaseQuery baseQuery);
}
